package com.zlm.user.emp.service;

import com.zlm.common.base.BaseService;
import com.zlm.common.entity.SysActivationDO;

/**
 * 验证码服务
 * @Author: duyufu
 * @Date: 2019/4/8 11:59
 */
public interface SysActivationService extends BaseService<SysActivationDO> {

    /**
     * 发送验证码
     * @param mobile
     * @return
     */
    String sendActivation(String mobile);

    /**
     * 获取验证码
     * @param activation
     * @return
     */
    SysActivationDO getActivation(SysActivationDO activation);

    /**
     * 修改验证码状态
     * @param id
     */
    void changeStatus(Integer id);

    /**
     * 校验验证码
     * @param activation
     * @param mobile
     * @return
     */
    String checkActivation(String activation, String mobile);
}
